package org.jeecg.modules.procurement.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecgframework.poi.excel.annotation.ExcelCollection;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @Description: 原料采购订单
 * @Author: jeecg-boot
 * @Date:   2024-06-07
 * @Version: V1.0
 */
@Data
@ApiModel(value="buss_material_procurementPage对象", description="原料采购订单")
public class BussMaterialProcurementPage {


	/**主键*/
	@ApiModelProperty(value = "主键")
    private String id;
	/**创建人*/
	@ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
	@ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**所属部门*/
	@ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
	/**编号*/
	@Excel(name = "编号", width = 15)
	@ApiModelProperty(value = "编号")
    private String code;

	/**
	 * 采购数量
	 */
    private java.math.BigDecimal procurementNum;
	/**运输方式*/
	@Excel(name = "运输方式", width = 15)
	@ApiModelProperty(value = "运输方式")
    private String transport;
	/**到货描述*/
	@Excel(name = "到货描述", width = 15)
	@ApiModelProperty(value = "到货描述")
    private String arrivalDesc;
	/**付款方式*/
	@Excel(name = "付款方式", width = 15)
	@ApiModelProperty(value = "付款方式")
    private String payment;
	/**类型*/
	@Excel(name = "类型", width = 15)
	@ApiModelProperty(value = "类型")
    private String type;
	/**付款时间*/
	@Excel(name = "付款时间", width = 15)
	@ApiModelProperty(value = "付款时间")
    private String paymentTime;
	/**到货日期*/
	@Excel(name = "到货日期", width = 15)
	@ApiModelProperty(value = "到货日期")
    private String arrivalDate;
	/**到户价格*/
	@Excel(name = "到户价格", width = 15)
	@ApiModelProperty(value = "到户价格")
    private String arrivalPrice;
	/**总价格*/
	@Excel(name = "总价格", width = 15)
	@ApiModelProperty(value = "总价格")
    private String allPrice;
	/**其他事项*/
	@Excel(name = "其他事项", width = 15)
	@ApiModelProperty(value = "其他事项")
    private String otherRem;

	@ApiModelProperty(value = "采购类型")
	private Integer procurementType;
	/**
	 * 供应上id
	 */
	private String supplierId;

	/**
	 * 物料id
	 */
	private String materialId;

	/**
	 * 物料名称
	 */
	private String materialName;
	/**
	 * 物料编号
	 */
	private String materialCode;
	/**
	 * 规格
	 */
	private String spec;

	/**
	 * 单位
	 */
	@Dict(dicCode = "ji_unit")
	private String meUnit;
	/**
	 * 供应商
	 */
	private String supplierName;

	/**
	 * 明细id
	 */
	private String detailId;

	private String status;


	@ExcelCollection(name="原料采购订单明细")
	@ApiModelProperty(value = "原料采购订单明细")
	private List<BussMaterialProcurementDetailVo> detaillist;

	private String ext1;

//	private List<BussMaterialProcurementDetail> details;

	/**
	 * 到货数量
	 */
	private BigDecimal arrivalNum;

}
